package com.itcast.demo.feignapi.clients;

import com.itcast.demo.feignapi.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author ADMIN
 * @date 2021/11/1 23:54
 */
@FeignClient("userservice")
public interface UserClient {
    @GetMapping("/user/{id}")
    public User queryById(@PathVariable("id") Long id);
}

